mark=[58,72,148,133]
print(mark)
mark[0]=59
print(mark)
mark[0]=58
mark.append(1)  #末尾增加元素
print(mark)
mark.insert(0,1)    #任何一点增加元素
print(mark)
del mark[0]     #删除元素
print(mark)
del mark[-1]
print(mark)
material=mark.pop(0)     #剪切元素
print(mark)
print(material)
mark.insert(0,58)
print(mark)

##Homework
#3-4list
list=["Father","Mother","Wife"]
print("Hello,my dear "+list[0].lower())
#3-5revise
sorry=list.pop(-1)
print("Sorry,my "+sorry.lower()+" can't attend the meeting")
list.append("Neighbor")
print("Sorry,my "+sorry.lower()+" can't attend the meeting.But my "+list[-1].lower()+" will replace her to attend the meeting")
#3-6add
list.insert(0,"HU")
list.append("CHAO")
list.insert(2,"AN")
print(list)
print(len(list))
while (len(list)>2):
	delete=list.pop(-1)
	print("Sorry,"+delete+",I don't have enough seat to invite you")
while (0<len(list)):
	print("Congratulation!"+list[0]+",you can attend my meeting")
	del list[0]
	print(list)